#include "MyProject.h"
#include "MyGrib.h"

#if defined(_MSC_VER)
#define _PluginExport  __declspec(dllexport)
#else
#define _PluginExport
#endif


#ifndef OC_STATIC_LIB
extern "C" void _PluginExport dllStartPlugin();
extern "C" void _PluginExport dllStopPlugin();

MyProject* project = NULL;
MyGrib* myGrib = NULL;
extern "C" void _PluginExport dllStartPlugin()
{
	project = new MyProject();
	myGrib = new MyGrib();
}

extern "C" void _PluginExport dllStopPlugin()
{
	CORE_SAFE_DELETE(project);
	CORE_SAFE_DELETE(myGrib);
}

#endif
